import request from '@/utils/request'

// 列表展示
export function getList(query) {
  return request({
    url: '/com.mmk.admin.api.AdminUserProvider/1.0.0/listAdminUsers.html',
    method: 'post',
    data: query
  })
}
//新增
export function saveAdminUser(query) {
    return request({
      url: '/com.mmk.admin.api.AdminUserProvider/1.0.0/saveAdminUser.html',
      method: 'post',
      data: query
    })
}
//部门列表
export function listAdminDeptDTO(query) {
    return request({
      url: '/com.mmk.admin.api.AdminUserProvider/1.0.0/listAdminDeptDTO.html',
      method: 'post',
      data: query
    })
}
//角色列表
export function listAdminRoleDTO(query) {
    return request({
      url: '/com.mmk.admin.api.AdminUserProvider/1.0.0/listAdminRoleDTO.html',
      method: 'post',
      data: query
    })
}
//根据用户名获取用户信息
export function getAdminUser(query) {
    return request({
      url: '/com.mmk.admin.api.AdminUserProvider/1.0.0/adminUserDetails.html',
      method: 'post',
      data: query
    })
}
//密码重置
export function resetAdminUserPwd(query) {
    return request({
      url: '/com.mmk.admin.api.AdminUserProvider/1.0.0/resetAdminUserPwd.html',
      method: 'post',
      data: query
    })
}
//修改状态
export function modifyAdminUserStatus(query) {
    return request({
      url: '/com.mmk.admin.api.AdminUserProvider/1.0.0/modifyAdminUserStatus.html',
      method: 'post',
      data: query
    })
}
//编辑
export function updateAdminUser(query) {
    return request({
      url: '/com.mmk.admin.api.AdminUserProvider/1.0.0/updateAdminUser.html',
      method: 'post',
      data: query
    })
}